package cn.vivi.design.single;

/**
 * 饿汉式单例模式
 */
public final class Singleton {

    private static final Singleton instance = new Singleton();

    // 私有构造器
    private Singleton() {
    }

    public static Singleton getInstance() {
        return instance;
    }

}
